<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>提现</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no,email=no,address=no"/>
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <link rel="stylesheet" href="../css/zy_common.css"/>
    <link rel="stylesheet" href="../css/zy_base.css"/>
</head>
<body>
    <div class="bw plr75 pb88 mt20">
        <p class="pt30 font16 col9">提现金额</p>
        <div class="flex_a bdb pt88 pb45">
            <span class="font25 col3 pr30">￥</span><input type="number"  class="font25 col3 w100 money"  autofocus  oninput="this.value.replace(/[0-9]/g,'')">
        </div>
    </div>
    <div class="h100 lh100 plr24 font15 col9">提款到的账号</div>
    <div class="bw plr24 h100 flex_a col3 font15">
        <img src="../img/wx.png" alt="" style="width: .4rem;"><span class="ml20" style="color: #999;">提款到管理员微信钱包余额</span><!--<input type="text" placeholder="请输入您的微信号" class="ml20 font15 col3 wxCount flex1 h100" />-->
    </div>
    <div class="confirm" style="margin-top:.6rem">确定</div>

</body>
</html>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/dlc.js"></script>
<script>
    $(function(){
        var onOff=0;
        $('.confirm').click(function () {
            var money = $('.money').val()*1;
            var wxCount = $('.wxCount').val();
            if(isNull(money)){
                dlctipbox.show('请输入金额');
            }
//          else if(isNull(wxCount)){
//              dlctipbox.show('请输入您的微信号');
//          }
            else{
                if(onOff)return false;
                onOff=1;
                dlctipbox.loading('请稍后');
                dlc_request('/api/walletDetail/withdrawDeposit',{agentId:getLocalData('fd_id'),money:money*100,wxCount:wxCount},function (res) {
                    dlctipbox.clear();
                    if(res.code==1){
                        dlctipbox.show('提交成功');
                        setTimeout(function () {
                            history.go(-1);
                        },1500);
                    }else{
                        onOff=0;
                        dlctipbox.show(res.msg);
                    }
                })
            }
        });
    })
</script>